package com.sunshuo.springsecuritydemo.service;

import com.sunshuo.springsecuritydemo.dao.MenuDao;
import com.sunshuo.springsecuritydemo.pojo.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName MenuService
 * @Description
 * @Author sunshuo
 */
@Service
public class MenuService {

    private MenuDao menuDao;

    @Autowired
    public void setMenuDao(MenuDao menuDao) {
        this.menuDao = menuDao;
    }

    public List<String> getAuthCodeByRoleNames(List<String> roleIds) {
        return menuDao.getAuthCodeByRoleNames(roleIds);
    }

    public List<Menu> getAll() {
        return menuDao.getAll();
    }

}
